package com.learn.kotlinlearndemolist.derived

/**
 * author: ts
 * created on: 2025/2/11 上午9:25
 * description:
 */
class Derived {
    interface Base{
        fun print()
    }

    class BaseImpl(val x: Int) : Base {
        override fun print() {
            println(x)
        }
    }

    class Derived(b: Base) : Base by b
}